const express = require("express");
const router = express.Router();
const { login, regUser } = require("../router_handler/user");

const expressJoi = require("@escook/express-joi");
const userSchema = require("../schema/user");

router.post("/login", expressJoi(userSchema), login);
router.post("/regUser", expressJoi(userSchema), regUser);

module.exports = router;
